


//
//  MAPBottomBTN.m
//  Zuker
//
//  Created by MB__Lee on 2018/5/21.
//  Copyright © 2018年 zuke.com. All rights reserved.
//

#import "MAPBottomBTN.h"

@implementation MAPBottomBTN

-(CGRect)imageRectForContentRect:(CGRect)contentRect{
    
    
    CGFloat imgvWidth = 10;
    CGFloat imgvHight = 6;
    
    
    CGFloat x = CGRectGetMaxX(contentRect) - imgvWidth - 10;
    
    CGFloat y = (CGRectGetMaxY(contentRect) - imgvHight ) *0.5;
    return  CGRectMake(x, y, imgvWidth, imgvHight);
}
-(CGRect)titleRectForContentRect:(CGRect)contentRect{
    
    CGFloat imgvWidth =  10;
    CGFloat imgvHight =  MBScale(40);

    CGFloat y = (CGRectGetMaxY(contentRect) - imgvHight ) *0.5;
    CGFloat labelWidth = CGRectGetMaxX(contentRect) - imgvWidth;

    return   CGRectMake(0, y, labelWidth, imgvHight);
    
}

@end
